import {http} from '@/utils/http'

enum Api {
    updateMember = '/member/update',
    getMemberList = '/member/page',
    getMember = '/member/get/',
    deleteMember = '/member/delete/',
    addMember = '/member/add',
}

/** 会员*/
// 会员分页列表
export function getMemberList(data:any) {
    return http.post<any>(Api.getMemberList, data)
}
// 添加会员
export function addMember(data:any) {
    return http.post<any>(Api.addMember,data)
}
// 会员详情
export function getMember(id:string|number) {
    return http.post<any>(Api.getMember+id)
}
// 修改会员
export function updateMember(data:any) {
    return http.post<any>(Api.updateMember,data)
}
// 删除会员
export function deleteMember(id:string|number) {
    return http.post<any>(Api.deleteMember+id)
}














